<?php
	$app->add('App\Middleware\TrailingSlashMiddleware');
	$app->get('/login','App\Controller\UserController:Login')->setname('login');
	$app->get('/notallow','App\Controller\UserController:Error405')->setname('notallow')->add(new App\Middleware\AuthMiddleware($container));
	$app->get('/','App\Controller\UserController:Login');
	$app->get('/logout','App\Controller\UserController:Logout');
	$app->post('/postlogin','App\Controller\UserController:postLogin');
	$app->get('/index','App\Controller\UserController:Index')->add(new App\Middleware\AuthMiddleware($container));
	$app->get('/404','App\Controller\UserController:Error404')->setname('Error')->add(new App\Middleware\AuthMiddleware($container));
	$app->get('/list','App\Controller\UserController:List')->add(new App\Middleware\AuthMiddleware($container));
	$app->get('/select','App\Controller\UserController:Select')->add(new App\Middleware\AuthMiddleware($container));
	$app->get('/item','App\Controller\UserController:Item')->add(new App\Middleware\AuthMiddleware($container));
	$app->post('/update','App\Controller\UserController:Update')->add(new App\Middleware\AuthMiddleware($container));
	$app->post('/add','App\Controller\UserController:Add')->add(new App\Middleware\AuthMiddleware($container));
	$app->get('/user/name','App\Controller\UserController:GetName')->add(new App\Middleware\AuthMiddleware($container));
	$app->get('/user/info','App\Controller\UserController:UserInfo')->add(new App\Middleware\AuthMiddleware($container));
	$app->post('/user/info','App\Controller\UserController:UserInfo')->add(new App\Middleware\AuthMiddleware($container));
	$app->get('/getmenu','App\Controller\UserController:getMenu')->add(new App\Middleware\AuthMiddleware($container));
	$app->get('/motai','App\Controller\UserController:Motai')->add(new App\Middleware\AuthMiddleware($container));
	$app->get('/power/item','App\Controller\RolrController:PowerItem')->add(new App\Middleware\AuthMiddleware($container));
	$app->get('/power/allitem','App\Controller\RolrController:PowerAllItem')->add(new App\Middleware\AuthMiddleware($container));
	$app->get('/power/selectid','App\Controller\RolrController:PowerId')->add(new App\Middleware\AuthMiddleware($container));
	$app->group('', function () {
	$this->post('/user/add','App\Controller\UserController:UserAdd');
	$this->get('/user/add','App\Controller\UserController:GetUserAdd');
	$this->post('/user/update','App\Controller\UserController:UserUpdate');
	$this->get('/user/update','App\Controller\UserController:GetUserUpdate');
	$this->get('/user/delect','App\Controller\UserController:UserDelect');
	$this->get('/user/list','App\Controller\UserController:UserList');
	$this->get('/user/item','App\Controller\UserController:UserItem');
	$this->get('/user/select','App\Controller\UserController:UserSelect');
	$this->post('/user/select','App\Controller\UserController:PostUserSelect');
	$this->get('/rolr/info','App\Controller\RolrController:RolrInfo');
	$this->get('/rolr/item','App\Controller\RolrController:RolrItem');
	$this->post('/rolr/item','App\Controller\RolrController:PostRolrItem');
	$this->get('/rolr/list','App\Controller\RolrController:RolrList');
	$this->post('/rolr/delete','App\Controller\RolrController:RolrDelete');
	$this->post('/rolr/add','App\Controller\RolrController:RolrAdd');
	$this->post('/rolr/list','App\Controller\RolrController:PostRolrList');
	$this->get('/rolr/oprate','App\Controller\RolrController:RolrOprate');
	$this->get('/power/list','App\Controller\RolrController:PowerList');
	$this->post('/power/add','App\Controller\RolrController:PowerAdd');
	$this->get('/rolr/select','App\Controller\RolrController:RolrSelect');
	})->add(new App\Middleware\RolrMiddleware($container))->add(new App\Middleware\AuthMiddleware($container));
	//中间件
